Read about data cannot read or written error 36, The latest news, videos, and discussion topics about data cannot read or written error 36 from alibabacloud.com
Thinking logic of computer programs (36) and thinking 36
In the previous section, we introduced the basic concepts and principles of generics. In this section, we will continue to discuss generics and the wildcard concepts in generics. Wildcards
It first looks for the specified php inclusion path and then finds the current directory. therefore, excessive paths are checked. if the script is included by another script, its basic directory is changed to the directory where another script is
It is very easy to teach to improve the quality of php code by 36. 1. do not use relative paths. you will often see: require_once (... libsome_class.php). This method has many disadvantages: it first looks for the specified php inclusion path and
Improvement of PHP code quality 36 1. do not use relative paths
We often see:
require_once('../../lib/some_class.php');
This method has many disadvantages:
It first looks for the specified php inclusion path and then finds the current directory.
1. Fault Check Information
STOP 0x0000001E (0XC0000005,0XFDE38AF9,0X0000001,0X7E8B0EB4)
KMODE_EXCEPTION_NOT_HANDLED * * * The first part of the error is the stop code (stop code), which is stopped 0x0000001E, to identify the type of error that has
You will often see:
1
require_once
(
'../../lib/some_class.php'
);
There are many drawbacks to this approach:
It first finds the specified PHP include path, and then
1. Do not use relative paths
Often you will see:
Require_once ('.. /.. /lib/some_class.php ');
There are many drawbacks to this approach:
It first looks for the specified PHP include path and then finds the current directory.
Therefore, too
1. Do not use relative pathsYou will often see:
Require_once ('.. /.. /lib/some_class.php ');
There are many drawbacks to this approach:
It first finds the specified PHP include path, and then finds the current directory.
Therefore, too many paths
18. Encapsulating tool functions in a class
If you define a number of tool functions in a file:
function Utility_a ()
{
This function does a utility thing like string processing
}
function Utility_b ()
{
This function does nother
The basic concepts and principles of generics are described in the previous section, and this section continues the discussion of generics, mainly on the concept of wildcard characters in generics. Wildcards have confusing and confusing syntax, but
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.